<?php
require_once('db_settings.php');
$conn = mysql_connect($db_host, $db_user, $db_pwd);
if (!$conn)
{
    die('Could not connect: ' . mysql_error());
}
mysql_query("set character set 'utf8'"); //read
mysql_query("set names 'utf8'"); //write
mysql_select_db("crazy_blog", $conn);